//服务类型通用加载
function fulxcontent(pagei,data,serviceid) {
    //加载前清空div中的内容
    $("#fulx-bk").empty();
    //动态加载行业聚焦新闻内容
    for (i = (pagei-1)*contentnum;i < pagei*contentnum && i < data.datas.length; i++) {

        var fulxdiv = document.createElement("div");
        fulxdiv.id = data.datas[i].caseId;
        fulxdiv.className = "fulx_div";
        fulxdiv.innerHTML = "<img class='fulx_img' src='" + data.datas[i].caseImg + "'>"+
            "<a class='fulx-lj' >"+
            "<div class='mask-fulx'>"+
            "<div>"+
            "<h2>" + data.datas[i].caseName + "</h2>"+
            "<p class='hidden-xs'>" + data.datas[i].caseIntro + "</p>"+
            "</div>"+
            "</div>"+
            "</a>";
        document.getElementById("fulx-bk").appendChild(fulxdiv);
        //给创建的div添加点击事件
        document.getElementById(data.datas[i].caseId).addEventListener("click",function(){servicecase(this,serviceid)});
    }

    //分页加载
    var pagemax = Math.ceil(data.datas.length/contentnum);
    loadfenye(pagei,pagemax);
}